package com.ideaaedi.springcloud.jd.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysMenuApiRePO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysMenuBindApiReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysApiListRespVO;

import java.util.List;

/**
 * <p>
 * 系统-菜单资源中间 服务类
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.5.B
 */
public interface SysMenuApiReService extends IService<SysMenuApiRePO> {
    
    /**
     * 给菜单绑定api资源
     *
     * @param req 请求模型
     *
     * @return 操作是否成功
     */
    List<SysApiListRespVO> bindApi(SysMenuBindApiReqVO req);
    
    /**
     * 查询菜单拥有的api资源
     *
     * @param menuId 菜单id
     *
     * @return api资源集合
     */
    List<SysApiListRespVO> queryBindApi(Long menuId);
}
